import flask 
from flask_bootstrap import Bootstrap
from config import StuManSysConfig as Config
from flask_mail import Mail
from flask_sqlalchemy import SQLAlchemy
from flask_moment import Moment
import pymysql
pymysql.install_as_MySQLdb()


bootstrap = Bootstrap()
mail = Mail()
db = SQLAlchemy()
moment = Moment()


app = flask.Flask(__name__, template_folder='templates', static_folder='static')
Config.init_app(app)
Bootstrap(app)
mail.init_app(app)
db.init_app(app)
moment.init_app(app)

app.config.from_object(Config)

from StuManSys import view